#!/bin/bash

if [ $# -gt 1 ];
then
    echo "Error Usage" 1>&2
    exit 1
fi

FILE="./test.c"

if [ -n "$1"  ];
then
    FILE=$1
fi

if [ -f $FILE ];
then
    ./bin/main < $FILE
else
    echo "Could not find $FILE"
    exit 2
fi